const AuthorModel = require('../db/models/author');

class AuthorService {
    //查询明星作者信息
    async getStarAuthorData () {
        return await AuthorModel.findAll({
            where: { 
                status: 1, 
                isStar: 1
            },
            attributes: {
                exclude: ['id', 'aid', 'imgUrl', 'createdAt', 'updatedAt']
              }
        })
    }
}

module.exports = new AuthorService();